package com.xaicode.auth.constant;

/**
 * 数据类型
 * 
 * @date 2024/12/4
 */
public enum DataTypeEnum {

    INT,

    LONG,

    FLOAT,

    DOUBLE,

    BOOL,

    STRING,

    ARRAY,

    LIST,

    MAP,

    SET,

    ;


    public static DataTypeEnum toEnum(String name) {
        for (DataTypeEnum e : values()) {
            if (e.name().equalsIgnoreCase(name)) {
                return e;
            }
        }
        return null;
    }

}
